/* 储存组织相关控件字段 */

import { IcomponentItem } from '../types';

/* 储存组织相关属性 */
export const organizationControl: IcomponentItem[] = [
  {
    componentName: '组织名称',
    code: 'ORGANIZATION_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationName',
    props: {
      placeholder: '请输入组织名称'
    }
  },
  {
    componentName: '组织类型',
    code: 'ORGANIZATION_TYPE',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationType',
    props: {
      placeholder: '请选择组织类型'
    }
  },
  {
    componentName: '组织简称',
    code: 'ORGANIZATION_ABBREVIATION',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationAbbreviation',
    props: {
      placeholder: '请输入简称'
    }
  },
  {
    componentName: '组织编码',
    code: 'ORGANIZATION_CODE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationCode',
    props: {
      placeholder: '请输入组织编码'
    }
  },
  {
    componentName: '上级组织',
    code: 'ORGANIZATION_SUPERIOR',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationSuperior',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '组织负责人',
    code: 'ORGANIZATION_LEADER',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationLeader',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '编制人数',
    code: 'ORGANIZATION_HEADCOUNT',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationHeadCount',
    props: {
      placeholder: '请输入编制人数'
    }
  },
  {
    componentName: '分管领导',
    code: 'ORGANIZATION_SECOND_LEADER',
    componentType: 'SELECT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationSecondLeader',
    props: {
      placeholder: '请选择'
    }
  },
  {
    componentName: '工作地点',
    code: 'ORGANIZATION_ADDRESS',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: ['placeholder'],
    fieldName: 'organizationAddress',
    props: {
      placeholder: '请输入工作地点'
    }
  },
  {
    componentName: '是否为独立法人',
    code: 'ORGANIZATION_LEGAL_PERSON',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'organizationLegalPerson',
    props: {}
  },
  {
    componentName: '是否为虚拟组织',
    code: 'ORGANIZATION_VIRTUAL',
    componentType: 'RADIO',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'organizationVirtual',
    props: {}
  },
  {
    componentName: '组织机构代码',
    code: 'ORGANIZATION_CODE_CERTIFICATE',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'organizationCodeCertificate',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '集团名称',
    code: 'GROUP_NAME',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'groupName',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '集团简称',
    code: 'GROUP_ABBREVIATION',
    componentType: 'TEXT',
    icon: 'icon-danhangwenben',
    showFieldList: [],
    fieldName: 'groupAbbreviation',
    props: {
      placeholder: '请输入'
    }
  },
  {
    componentName: '集团简介',
    componentType: 'TEXT_AREA',
    code: 'GROU_PPROFILE',
    icon: 'icon-duohangwenben',
    showFieldList: ['textMax', 'placeholder'],
    fieldName: 'groupProfile',
    props: {
      placeholder: '请输入文字'
    }
  }
];

/* 储存code */
export const organizationControlField = [
  'ORGANIZATION_NAME',
  'ORGANIZATION_TYPE',
  'ORGANIZATION_ABBREVIATION',
  'ORGANIZATION_CODE',
  'ORGANIZATION_HEADCOUNT',
  'ORGANIZATION_ADDRESS',
  'ORGANIZATION_LEGAL_PERSON',
  'ORGANIZATION_VIRTUAL',
  'ORGANIZATION_SUPERIOR',
  'ORGANIZATION_LEADER',
  'ORGANIZATION_SECOND_LEADER',
  'ORGANIZATION_CODE_CERTIFICATE',
  'GROUP_NAME',
  'GROUP_ABBREVIATION',
  'GROU_PPROFILE'
];
